import unittest
import time
from datetime import datetime

class TestDemo(unittest.TestCase):

    def setUp(self) -> None:
        now = datetime.now()
        print(now.strftime("%Y-%m-%d  %H:%M:%S"))
        # print(time.strftime(format="%Y-%m-%d %H:%M:%S", t=time.time()))

    def tearDown(self) -> None:
        pass

    def test01_func(self):
        time.sleep(4)
        print("func is successfull")
    
    def test02_func(self):
        time.sleep(4)
        print("test02")

    def test03_func(self):
        time.sleep(4)
        self.assertTrue(False)
        print("test03")

    def test04_func(self):
        time.sleep(2)
        self.assertTrue(True)
        print("test04")

if __name__ == '__main__':
    unittest.main(verbosity=2)